@extends('admin.layouts.app')
@section('css')
	<link href="{{asset('assets/plugins/select2/css/select2.min.css')}}" rel="stylesheet" type="text/css" />
 
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                                <div class="btn-group pull-right m-t-15">
                                    <button type="button" class="btn btn-default dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                                    <ul class="dropdown-menu drop-menu-right" role="menu">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li class="divider"></li>
                                        <li><a href="#">Separated link</a></li>
                                    </ul>
                                </div>

								<h4 class="page-title">Responsive Table</h4>
								<ol class="breadcrumb">
									<li>
										<a href="#">Ubold</a>
									</li>
									<li>
										<a href="#">Tables</a>
									</li>
									<li class="active">
										Responsive Table
									</li>
								</ol>
							</div>
						</div>
						

						
					

							<div class="col-sm-12">
								<div class="card-box">


									
		<div class="table-rep-plugin">
			<div class="table-responsive" >
				<table  class="table  table-striped">
					<thead>
						<tr>
							<th>ID</th>
							
							<th data-priority="1">商品名</th>
							<th data-priority="3">得分</th>
							<th data-priority="1">评价人</th>
							<th data-priority="3">店铺</th>
							<th data-priority="3">订单</th>
							
														
							<th data-priority="6">操作</th>
						</tr>
					</thead>
					<tbody>
                        @foreach($list as $v)  
						<tr>
							<th>{{$v->id}}</th>
							<th>{{$v->product->name or ''}}</th>
							<td>{{$v->point}}</td>
							<td>{{$v->user->name or ''}}</td>
							<td>{{$v->product->shop->name or ''}}</td>
							<td>{{$v->order->code or ''}}</td>
														
							
							<td>操作</td>
						</tr>
                        @endforeach
													
												</tbody>
											</table>
										</div>
{{$list->appends($where)->links()}}
									</div>

								</div>
							</div>
						</div>
						<!-- end row -->
 @endsection 
               
         

    @section('js')
        <script src="{{asset('assets/plugins/select2/js/select2.min.js')}}" type="text/javascript"></script>

      
    @endsection    

